import request from '@/utils/request'

// 查询仓库管理列表
export function listWarehousemanagement(query) {
  return request({
    url: '/system/warehousemanagement/list',
    method: 'get',
    params: query
  })
}

// 查询仓库管理详细
export function getWarehousemanagement(id) {
  return request({
    url: '/system/warehousemanagement/' + id,
    method: 'get'
  })
}

// 新增仓库管理
export function addWarehousemanagement(data) {
  return request({
    url: '/system/warehousemanagement',
    method: 'post',
    data: data
  })
}

// 修改仓库管理
export function updateWarehousemanagement(data) {
  return request({
    url: '/system/warehousemanagement',
    method: 'put',
    data: data
  })
}

// 删除仓库管理
export function delWarehousemanagement(id) {
  return request({
    url: '/system/warehousemanagement/' + id,
    method: 'delete'
  })
}
